

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>示例商城</title> 
		<meta name="keywords" content="">
		<meta name="description" content="">
	<meta http-equiv="X-UA-Compatible" content="IE=8">
	
</meta>

<script>
var member = "com.enation.app.base.core.model.Member@4867b3c3";
var loginDialog;
var ctx="/b2b2c";
var app_path="/b2b2c";
</script>

	<link href="http://www.javamall.com.cn:8080/b2b2c/statics/images/favicon.ico" rel="shortcut icon">
<link rel="stylesheet" type="text/css" href="./seller/base.css">
<link rel="stylesheet" type="text/css" href="./seller/home_header.css">
<link rel="stylesheet" type="text/css" href="./seller/home_login.css">
<link rel="stylesheet" type="text/css" href="./seller/style.css">
<link rel="stylesheet" type="text/css" href="./seller/index.css">
<link rel="stylesheet" type="text/css" href="./seller/default.css">

<link rel="stylesheet" type="text/css" href="./seller/dialog.css">
<link rel="stylesheet" type="text/css" href="./seller/shop.css">

<script src="./seller/jquery.js"></script>
<script src="./seller/jquery.validate.js"></script> 
<script src="./seller/jquery.form-3.51.js"></script> 

<script src="./seller/lhgdialog.js"></script>
<script src="./seller/common.js"></script>
<script src="./seller/shop.js"></script>
<script src="./seller/CartBar.js"></script>
<script src="./seller/jquery.blockUI.js"></script>
<script src="./seller/LoginDialog.js"></script>

<script src="./seller/jquery.cookie.js"></script>
<script src="./seller/perfect-scrollbar.min.js"></script>
<script src="./seller/jquery.mousewheel.js"></script>
<!-- jquery 布局 -->
<script src="./seller/jquery.masonry.js"></script> 
<!-- 异步加载图片 -->
<script src="./seller/jquery.scrollLoading-min.js"></script>
<!-- 轮播图js -->
<script src="./seller/jquery.SuperSlide.2.1.1.js"></script>
<script src="./seller/jquery.ui.js"></script>
<!-- jquery的布局插件 -->
<script src="./seller/jquery.masonry.js"></script>
<script type="text/javascript">

var ctx="/b2b2c";
$(function(){
	$("#logout").click(function(){
		$.ajax({
			url:"/b2b2c/api/shop/member!logout.do?ajax=yes",
			dataType:"json",
			cache: false,             //清楚缓存，暂时测试，如果产生冲突，请优先考虑是否是这条语句。
			success:function(result){
				if(result.result==1){
					//$.alert(result.message);
					location.href="/b2b2c/index.html";
				}else{
					$.alert(result.message);
				}	
				$.Loading.hide();
			},
			error:function(){
				$.Loading.hide();
				$.alert("出错了:(");
			}
		});
		return false;
	});	
		
	$(".quick-menu dl").hover(function() {
		$(this).addClass("hover");
	},function() {
		$(this).removeClass("hover");
	});
})

</script>
</head>
<body>
	<div id="append_parent"></div>
	<div class="public-top-layout w">
		<div class="topbar wrapper">
			<div class="user-entry">
					 您好
					<span>
						<a href="/b2b2c/member/member.html">julian208</a>
					</span>
					，欢迎来到
					<a alt="首页" title="首页" href="/b2b2c/index.html">示例B2B2C示例商城</a>
					<span>
						[<a id="logout" href="javascript:void(0);">退出</a>]
					</span>
				<span class="seller-login"> 
					<a href="/b2b2c/store/business_center.html" target="_top" title="商家中心" target="_blank" title="登录商家管理中心">
					<script type="text/javascript">var isLogin= true;</script>
						<i class="icon-signin"></i>
						商家管理中心
					</a>
				</span>
			</div>
			<div class="quick-menu">
				<dl>
					<dt>
						<a href="/b2b2c/member/order.html">我的订单</a><i></i>
					</dt>
					<dd>
						<ul>
							<li><a href="/b2b2c/member/order.html?status=0">待付款订单</a></li>
							<li><a href="/b2b2c/member/order.html?order_state=5">待确认收货</a></li>
							<li><a href="/b2b2c/member/order.html?order_state=7">待评价交易</a></li>
						</ul>
					</dd>	
				</dl>
				<dl>
					<dt>
						<a href="/b2b2c/member/favorite.html" title="我的收藏" target="_top">我的收藏</a><i></i>
					</dt>
					<dd>
						<ul>
							<li><a href="/b2b2c/member/favorite.html" target="_top" title="收藏的商品">收藏的商品</a></li>
							<li><a href="/b2b2c/member/collect_store.html" target="_top" title="收藏的店铺">收藏的店铺</a></li>
						</ul>
					</dd>
				</dl>
				<dl>
					<dt>
						客户服务<i></i>
					</dt>
					<dd>
						<ul>
							<li><a href="/b2b2c/help-21-7.html">帮助中心</a></li>
							<li><a href="/b2b2c/help.html?articleid=16">售后服务</a></li>
							<li><a href="/b2b2c/help.html?articleid=8">客服中心</a></li>
						</ul>
					</dd>
				</dl>
				<dl>
					<dt>
						站点导航<i></i>
					</dt>
					<dd>
						<ul>
							<li><a target="_blank" href="/b2b2c/index.html">商城首页</a></li>
						</ul>
					</dd>
				</dl>
			</div>
		</div>
	</div>

<!-- 获取店铺信息  -->

<!-- 商家中心样式 -->
<link rel="stylesheet" type="text/css" href="./seller/member_store.css" />

<link rel="stylesheet" type="text/css" href="./seller/member.css" />

<link href="./seller/member.css"  rel="stylesheet" type="text/css">

<style>
.w30 {
	width: 40px;
}
.collapsed{
	display: none;
}
</style>
<div class="layout">
<script>
function load(){
	location.href="/b2b2c/store/login.html";
}
</script>
<div class="sidebar">
	<dl>
		<dt id="sidebar_goods_manage">
			<i class="pngFix"></i>商品管理
		</dt>
		<dd>
			<a target="_blank" href="/b2b2c/goods/select_cat.html">商品发布</a>
		</dd>
		<dd>
			<a href="/b2b2c/goods/store_goods_list.html?market_enable=1">出售中的商品</a>
		</dd>
		<dd>
			<a href="/b2b2c/goods/store_goods_list.html">仓库中的商品</a>
		</dd>
		<dd>
			<a href="/b2b2c/goods/goods_cat.html">分类管理</a>
		</dd>
		<dd>
			<a href="/b2b2c/goods/goodsTags.html">标签列表</a>
		</dd>
	</dl>
	<dl>
		<dt id="sidebar_goods_manage">
			<i class="pngFix"></i>交易管理
		</dt>
		<dd>
			<a href="/b2b2c/order/StoreOrder.html">订单管理</a>
		</dd>
		<dd>
			<a href="/b2b2c/order/StoreOrder.html?order_state=2">待发货订单</a>
		</dd>
		<!-- 		
		<dd>
			<a href="/b2b2c/transaction/ship_list.html">发货设置</a>
		</dd>
 		-->		
 		<dd>
			<a href="/b2b2c/transaction/transport.html">物流工具</a>
		</dd>
		<dd>
			<a href="/b2b2c/store/StoreEvaluateList.html?replyStatus=0">评价管理</a>
		</dd>
	</dl>
	<dl>
		<dt id="sidebar_goods_manage">
			<i class="pngFix"></i>促销管理
		</dt>
		<dd>
			<a href="/b2b2c/store/bonus_list.html">优惠券管理</a>
		</dd>
		<dd>
			<a href="/b2b2c/groupbuy/groupbuy_list.html">团购管理</a>
		</dd>
	</dl>
	<dl>
		<dt id="sidebar_goods_manage">
			<i class="pngFix"></i>店铺设置
		</dt>
		<dd>
			<a target="_blank" href="/b2b2c/home.html?show_c=1&store_id=6">我的店铺</a>
		</dd>
		<dd>
			<a href="/b2b2c/store/storeInfo.html">店铺设置</a>
		</dd>
		<dd>
			<a href="/b2b2c/store/auth.html">店铺认证设置</a>
		</dd>
		<dd>
			<a href="/b2b2c/store/store_slide.html">店铺幻灯片设置</a>
		</dd>
		<dd>
			<a href="/b2b2c/storesite/store_navigation.html">导航管理</a>
		</dd>
	</dl>
	<dl>
		<dt id="sidebar_goods_manage">
			<i class="pngFix"></i>客服管理
		</dt>
		<dd>
			<a href="/b2b2c/store/StoreConsultList.html?replyStatus=0">咨询管理</a>
		</dd>
		<!-- 
		<dd>
			<a>退款记录</a>
		</dd>
		<dd>
			<a>退货记录</a>
		</dd>
		 -->
	</dl>
</div>	<div class="right-content">
		<div class="path">
			<div>
				<a href="/b2b2c/store/business_center.html">商家中心</a> <span>&gt;</span> 
				<a href="#"> 分类管理 </a><span>&gt;</span>商品分类
			</div>
		</div>


		<div class="main">
			<div class="wrap" id="catlist">
				<div class="tabmenu">
					<ul class="tab pngFix">
						<li class="active">
							<a href="#">商品分类</a>
						</li>
					</ul>
					<a title="新增分类" 
						dialog_width="480" dialog_id="my_category_add" dialog_title="新增分类"
						nc_type="dialog" class="ncu-btn3" href="javascript:void(0)" onclick="saveOrUpdate()" >新增分类</a>
				</div>

				<table width="100%" id="my_category" class="table-style" >
					
					<thead>
					    <tr nc_type="table_header">
					    	<th class="w30"></th>
					        <th inputwidth="50%" checker="check_required" column="stc_name" coltype="editable">分类名称</th>
					        <th inputwidth="30px" checker="check_max" column="stc_sort" coltype="editable" class="w60">排序</th>
					        <th offclass="noshowclass-ico-btn" onclass="showclass-ico-btn" checker="" column="stc_state" coltype="switchable" class="w120">显示</th>
					        <th class="w90">操作</th>
					    </tr>
				      <tr>
				      		<td class="tc"><input type="checkbox" class="checkall" id="all"></td>
				        	<td colspan="20"><label for="all">全选</label>
				          		<a class="ncu-btn1 delAll" confirm="您确实要删除该分类吗?" name="class_id"  href="javascript:void(0)">
				          			<span>删除</span>
				          		</a>
				          	</td>
				      </tr>
				    </thead>

					<tbody>
					</tbody>

				</table>
			</div>
		</div>
	</div>
</div>

<script>

$(function(){
	$(".parimg").click(function(){
		var idvalue = $(this).attr("idvalue");
		var isimg = $(this).attr("isimg");
		var $this = $(this);
		$(this).parent().parent().parent().find(".ptr").each(function(){
			if($(this).attr("pidvalue")==idvalue){
				$(this).toggle();
				if(isimg==0){
					$this.attr("src","/themes/b2b2c/images/tv-expandable.gif");
					$this.attr("isimg",1);
				}else{
					$this.attr("src","/themes/b2b2c/images/tv-collapsable.gif");
					$this.attr("isimg",0);
				}
			}
		});
	})
	
	$(".checkall").click(function(){
		
		if($(this).attr("checked")=="checked"){
			$(".checkitem").each(function(){
				$(this).attr("checked",true);
			})
		}else{
			$(".checkitem").each(function(){
				$(this).attr("checked",false);
			})
		}
		
	});
	
	$(".delAll").click(function(){
		if(window.confirm('确定要删除分类吗？')){
			var catids="";
			var catnames="";
			$(".checkitem:checked").each(function(){
				catids=catids+$(this).val()+",";
				catnames = catnames+$(this).attr("catname")+",";
			})
			if(catids==""){
				alert("未勾选分类！");
				return false;
			}
			$.ajax({
				url : "/b2b2c/api/b2b2c/goodsCat!delAll.do?catids="+catids+"&catnames="+encodeURI(catnames),
				type : "POST",
				dataType : 'json',
				cache : false,
				success : function(result) {
					if (result.result == 1) {
						location.reload();
					}
					if (result.result == 0) {
						alert(result.message);
					}
				},
				error : function() {
					alert("出现错误，请重试");
				}
			});
		}
	});
	
});

	var dialog;
	
	function saveOrUpdate(catid){
		var map = {}; 				// 相当于Map map = new HashMap();
		if (!catid) {
			map["title"] = "添加分类";
			map["html"] = "goods_cat_add.html";
			map["url"] = "/b2b2c/api/b2b2c/goodsCat!addGoodsCat.do";
			map["form"] = "#add_form";
		} else {
			map["title"] = "修改分类";
			map["html"] = "goods_cat_edit.html?catid="+catid;
			map["url"] = "/b2b2c/api/b2b2c/goodsCat!editGoodsCat.do";
			map["form"] = "#edit_form";
		}
		openDialog(map);
	}
	
	function openDialog(map){
		dialog = $.dialog({
			title : map["title"],
			width : 400,
			height : 170,
			lock : true,
			min : false,
			max : false
		});

		$.ajax({
			url : map["html"],
			success : function(html) {
				dialog.content(html);
				dialog.button([{
					name : '保存',
					callback : function() {
						if($("#cat_name").val()==""){
							alert("请输入分类名称。");
							return false;
						}
						if($("#sort").val()==""){
							alert("请输入排序。");
							return false;
						}
						formSubmit(dialog,map);
						return false;
					}
				}, {
					name : '取消'
				}]);
			},
			error : function() {
				$.alert("出现错误,请重试！");
			},
			cache : false
		});
	}
	
	function formSubmit(dialog,map){
		var options = {
			url : map["url"],
			type : "POST",
			dataType : 'json',
			success : function(result) {
				if (result.result == 1) {
					dialog.title('保存成功，1秒后关闭此窗口。').time(2);
					dialog.reload();
				}
				if (result.result == 0) {
					alert(result.message);
				}
			},
			error : function(e) {
				alert("出现错误，请重试");
			}
		};
		$(map["form"]).ajaxSubmit(options);
		return false;
	}
	
	function del(catid,catname){
		if(window.confirm('确定要删除分类吗？')){
			$.ajax({
				url : "/b2b2c/api/b2b2c/goodsCat!delete.do?cat_id="+catid+"&cat_name="+encodeURI(catname),
				type : "POST",
				dataType : 'json',
				cache : false,
				success : function(result) {
					if (result.result == 1) {
						location.reload();
					}
					if (result.result == 0) {
						alert(result.message);
					}
				},
				error : function() {
					alert("出现错误，请重试");
				}
			});
		}
	}
	
	function add_children(catid){
		var map = {};
		map["title"] = "添加子分类";
		map["html"] = "goods_cat_add.html?catid="+catid;
		map["url"] = "/b2b2c/api/b2b2c/goodsCat!addGoodsCat.do";
		map["form"] = "#add_form";
		
		openDialog(map);
	}
	
</script>
<div class="footer">
	<div class="wrapper">
	<!-- 
	<div id="footer-top">
		<ul>
			<li class="one"><strong>正品行货<em>100%正品保证</em></strong></li>
			<li class="two"><strong>正品行货<em>100%正品保证</em></strong></li>
			<li class="three"><strong>正品行货<em>100%正品保证</em></strong></li>
			<li class="four"><strong>正品行货<em>100%正品保证</em></strong></li>
			<li class="five"><strong>正品行货<em>100%正品保证</em></strong></li>
		</ul>
	</div>
	 -->
	</div>
	<!--帮助中心-->
	  <div id="faq">
	  <div class="wrapper">
	    <ul>
	        <li>
		        <dl class="s1">
		          	<dt>新手上路 </dt>
		          			          		<dd><i></i>
		          			<a href="help.html?articleid=10" title="顾客必读">顾客必读</a>
		          		</dd>
		          		<dd><i></i>
		          			<a href="help.html?articleid=11" title="会员等级折扣">会员等级折扣</a>
		          		</dd>
		          		<dd><i></i>
		          			<a href="help.html?articleid=13" title="积分规则">积分规则</a>
		          		</dd>
		          		<dd><i></i>
		          			<a href="help.html?articleid=32" title="购物流程">购物流程</a>
		          		</dd>
		          		<dd><i></i>
		          			<a href="help.html?articleid=31" title="常见问题">常见问题</a>
		          		</dd>
		       </dl>
	      	</li>
	        <li>
	        	<dl class="s2">
	          		<dt>支付</dt>
		          		<dd><i></i>
		          			<a href="help.html?articleid=20" title="支付方式">支付方式</a>
		          		</dd>
		          		<dd><i></i>
		          			<a href="help.html?articleid=28" title="付款常见问题">付款常见问题</a>
		          		</dd>
		          		<dd><i></i>
		          			<a href="help.html?articleid=29" title="索取发票">索取发票</a>
		          		</dd>
	            </dl>
	      </li>
	      <li>
	    		<dl class="s3">
			        <dt>配送</dt>
		          		<dd><i></i>
		          			<a href="help.html?articleid=30" title="配送范围">配送范围</a>
		          		</dd>
		          		<dd><i></i>
		          			<a href="help.html?articleid=21" title="配送方式">配送方式</a>
		          		</dd>
		          		<dd><i></i>
		          			<a href="help.html?articleid=23" title="关于收货与验货">关于收货与验货</a>
		          		</dd>
	          	</dl>
	      </li>
	      <li>
	        	<dl class="s4">
	          		<dt>服务</dt>
		          		<dd><i></i>
		          			<a href="help.html?articleid=16" title="售后服务">售后服务</a>
		          		</dd>
		          		<dd><i></i>
		          			<a href="help.html?articleid=18" title="免责条款">免责条款</a>
		          		</dd>
		          		<dd><i></i>
		          			<a href="help.html?articleid=14" title="商品退换货保障">商品退换货保障</a>
		          		</dd>
	           </dl>
	      </li>
	      <li>
	        	<dl class="s5">
	          		<dt>帮助</dt>
		          		<dd><i></i>
		          			<a href="help.html?articleid=26" title="满百免运费">满百免运费</a>
		          		</dd>
		          		<dd><i></i>
		          			<a href="help.html?articleid=27" title="晒单免单">晒单免单</a>
		          		</dd>
		        </dl>
	      </li>
	      <li>
	        	<dl class="s6">
	          		<dt>关于我们 </dt>
		          		<dd><i></i>
		          			<a href="help.html?articleid=33" title="订单查询">订单查询</a>
		          		</dd>
		          		<dd><i></i>
		          			<a href="help.html?articleid=12" title="订单状态">订单状态</a>
		          		</dd>
		          		<dd><i></i>
		          			<a href="help.html?articleid=34" title="订单常见问题">订单常见问题</a>
		          		</dd>
	            </dl>
	      </li>
	      <div class="clear"></div>
	    </ul>
	  </div>
	</div>
	<!--底部版权，调用footer.php-->
	<div id="footer" >
		<div class="wrapper">
		  <p><a href="javascript:void(0);">首页</a>
             | <a  href="javascript:void(0);">招聘英才</a>
             | <a  href="javascript:void(0);">广告合作</a>
             | <a  href="javascript:void(0);">联系我们</a>
             | <a  href="javascript:void(0);">关于我们</a>
          </p>
		</div>
	</div>
	</div>
	<script>
	var _hmt = _hmt || [];
	(function() {
	  var hm = document.createElement("script");
	  hm.src = "//hm.baidu.com/hm.js?695a60ef05a898e14ac5eeebf8756d6a";
	  var s = document.getElementsByTagName("script")[0]; 
	  s.parentNode.insertBefore(hm, s);
	})();
	</script>
	
</body>
</html>
